﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tensop.Net.Tcp
{
    public enum AuthencationResult:sbyte
    {
        SuccessAndNoProc = 0x00000002,
        SuccessAndNeedProc = 0x00000001,
        FailedAndNoProc = 0x00000000,
        FailedAndNeerProc = -0x00000001,
        ProcSuccess = 0x00000001,
        ProcFailed = -0x00000001
    }
    public delegate void ConnectStateChangedEventHandler(bool state);
    public delegate void ClientAuthencationEventHandler(AuthencationResult r);
    public delegate void ClientReceiveCompletedEventHandler(byte[] data, byte protocol, byte version);
}
